home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.11 Nov 96 / DebuggingStarter Code / DebugTrapsOff.h < prev   
Encoding:
C/C++ Source or Header  |  1996-09-05  |  2.0 KB  |  76 lines  |  [TEXT/CWIE]

  1. /*________________________________________________________________________________
  2.     DebugTrapsOff.h
  3. ________________________________________________________________________________*/
  4.  
  5.  
  6. #pragma once
  7.  
  8. #if USE_DEBUG_TRAPS    // [
  9.  
  10. /*
  11. This file defeats the debugging traps mechanism for all debugging traps.
  12. To turn off debugging traps in an individual file, #include this file
  13. after #including DebugTraps.h (which is typically #included in a global prefix file).
  14.  
  15. This may be necessary in a few rare circumstances where mutual recursion
  16. between DebugTraps and other debugging code occurs.
  17.  
  18. You can also #undef an individual routine if it's a single routine that's a problem.
  19.  
  20. How to generate this file:
  21.     This file is derived from DebugTraps.h. If you change DebugTraps.h, do not
  22.     edit this file. Instead, generate a new file as follows:
  23.     1. Copy all #defines from DebugTraps.h to a scratch window
  24.     2. globally replace all #define with #undef
  25.     3. using grep, strip text after the #undef'd symbol
  26.     3. strip any other extraneous stuff from this file
  27.     4. save
  28. */
  29.  
  30.  
  31. // _____________________________ Memory Manager _________________________________
  32.  
  33. #undef BlockMove                
  34. #undef BlockMoveData            
  35. #undef NewPtr
  36. #undef NewPtrClear
  37. #undef NewPtrSys            
  38. #undef NewPtrSysClear
  39. #undef GetPtrSize                
  40. #undef SetPtrSize                
  41. #undef PtrZone                    
  42. #undef DisposePtr                
  43. #undef PtrToHand
  44. #undef NewHandle
  45. #undef NewHandleClear
  46. #undef NewHandleSys
  47. #undef NewHandleSysClear
  48. #undef GetHandleSize            
  49. #undef SetHandleSize            
  50. #undef ReallocateHandle        
  51. #undef DisposeHandle            
  52. #undef HLock                    
  53. #undef HUnlock                    
  54. #undef HGetState                
  55. #undef HSetState                
  56. #undef HandAndHand                
  57. #undef HandToHand
  58. #undef HPurge                    
  59. #undef HNoPurge                
  60. #undef EmptyHandle                
  61. #undef HandleZone                
  62. #undef RecoverHandle            
  63. #undef RecoverHandleSys        
  64. #undef SetZone                    
  65. #undef GetZone                    
  66. #undef TempNewHandle
  67. #undef TempDisposeHandle        
  68. #undef MoveHHi                    
  69. #undef PtrAndHand                
  70.  
  71.  
  72. // _____________________________ Others _________________________________
  73.  
  74.  
  75. #endif    // ]
  76.